def total(n):
    result = 0  # 结果存储
    lb = ""  # 结果前端字符串
    for i in range(1, n + 1):
        result += i
        if i > 1:
            lb = lb + " + " + str(i)
        else:
            lb = str(i)
        print(lb + " = " + str(result))


if __name__ == '__main__':
    total(20)
